.TH std::promise::operator= 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::promise::operator= \- std::promise::operator=

.SH Synopsis
   promise& operator=( promise&& other ) noexcept;    \fB(1)\fP \fI(since C++11)\fP
   promise& operator=( const promise& rhs ) = delete; \fB(2)\fP \fI(since C++11)\fP

   Assigns the contents.

   1) Move assignment operator. First, abandons the shared state (as in ~promise()),
   then assigns the shared state of other as if by executing
   std::promise(std::move(other)).swap(*this).
   2) promise is not copy-assignable.

.SH Parameters

   other - another promise to acquire the state from

.SH Return value

   *this
